<template>
  <el-menu :default-active="this.path" router class="el-menu-vertical-demo" unique-opened>
    <div style="height: 20px;"></div>
    <el-menu-item index="/ManageHome">
      <template slot="title">
        <i class="
           el-icon-house"></i>
        <span>首页</span>
      </template>
    </el-menu-item>
    <el-submenu index="1">
      <template slot="title">
        <i class="
            el-icon-chat-dot-round"></i>
        <span>聊天应用</span>
      </template>
      <el-menu-item index="/ChatAssit"><i class="el-icon-chat-line-square"></i><span>聊天助手</span></el-menu-item>
      <el-menu-item index="/AppManage"><i class="el-icon-mobile-phone"></i><span>应用管理</span></el-menu-item>
    </el-submenu>
    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-cpu"></i>
        <span>大模型</span>
      </template>
      <el-menu-item index="/ModelManage">  <i class="el-icon-cpu"></i><span>模型管理</span></el-menu-item>
    </el-submenu>
    <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-coin"></i>
        <span>知识库管理</span>
      </template>
      <el-menu-item index="/KnowBases"> <i class="el-icon-coin"></i><span>知识库列表</span></el-menu-item>
    </el-submenu>
    <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-coin"></i>
        <span>系统管理</span>
      </template>
      <el-menu-item index="/UserInfo"> <i class="el-icon-coin"></i><span>用户管理</span></el-menu-item>
      <el-menu-item index="/feedback"> <i class="el-icon-coin"></i><span>用户反馈</span></el-menu-item>
    </el-submenu>
  </el-menu>
</template>

<script>
export default {
  data() {
    return {
      path: this.$route.path,
    }
  },
  methods: {

  }
}
</script>

<style scoped>
span {
  color: #143371;
}
</style>